package com.lagou.myrpcconsumer.server;

import com.lagou.myrpcconsumer.proxy.RpcClientProxy;
import com.lagou.rpc.api.IUserService;
import org.springframework.stereotype.Service;

/**
 * @ProjectName: my-rpc
 * @Package: com.lagou.myrpcconsumer.server
 * @ClassName: UserServer
 * @Author: Administrator
 * @Description:
 * @Date: 2021/8/4 0004 下午 20:19
 * @Version: 1.0
 */
@Service
public class UserServer {

    /**
     * 创建代理对象
     * @return
     */
    public IUserService getIUserService(){
        return (IUserService) RpcClientProxy.createProxy(IUserService.class);
    }
}
